/* 
 * 创建日期 2011-4-2
 *
 * 成都天和软件公司
 * 电话：028-85425861 
 * 传真：028-85425861-8008 
 * 邮编：610041 
 * 地址：成都市武侯区航空路6号丰德万瑞中心B座1001 
 * 版权所有
 */
package  org.fantasy.common.lister;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import  org.fantasy.common.util.WebContext;

/**
 * 功能说明
 * 
 * @author 王文成
 * @version 1.0
 * @since 2011-4-2
 */
public class WebContextListener implements ServletContextListener {

	private static final Log log = LogFactory.getLog(WebContextListener.class);

	public void contextInitialized(ServletContextEvent event) {
		WebContext.setServletContext(event.getServletContext());
		log.info("WebContext init ServletContext Complete!");
	}
	
	public void contextDestroyed(ServletContextEvent event) {
		log.info("ServletContext destory!");
	}
}
